package com.xpalive.base.dto.page;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageReq {

    int page = 1;
    int size = 10;

    public static PageReq of() {
        return new PageReq();
    }

    public static PageReq of(int page, int size) {
        return new PageReq(page, size);
    }
}
